package com.gree.flowable.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gree.flowable.app.pojo.vo.ProcessInstanceQueryVO;
import com.gree.flowable.app.pojo.vo.ProcessInstanceVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface FlowableProcessInsMapper extends BaseMapper<ProcessInstanceVO> {
    /**
     * @Title:查询我发起的流程实例
     * @param page
     * @param params
     * @return
     */
    IPage<ProcessInstanceVO> getMyLaunchTaskList(Page<?> page, @Param("params") ProcessInstanceQueryVO params);

    int countBusinessKey(@Param("businessKey") String businessKey);
}
